package com.coders.vimek.Javatutorials;

public class JavaExceptionHandling {
	
	public int divide(int a ,int b)
	{
		int t;
		t=a/b;
		return t;
	}

	public void dis() throws Exception
	{
		
	}

	public static void main(String[] args) throws Exception 
	{
		int a=0,b=0,t;
		
		try
		{
			JavaExceptionHandling obj = new JavaExceptionHandling();
			t=obj.divide(a, b);
			System.out.println("answer is " +t);
			
		//	obj.dis();
			//if(t<0)
		//	{
		//		
		//	}
		}
		catch(Exception ex)
		{
			throw new Exception("sdf");
			//ex.getStackTrace();
		}
		
		
	}
	
}
